export default {
  namespaced: true,
  state: {
      user2:{}
  },
  mutations: {
    PersonalInformation(state,res){
       state.user=res.data
    }
  },
  getters: {

  },
  actions: {
    getuser(context,prams){
     const userId = sessionStorage.getItem('userId')
     axios.get(`/api/threesuns/user/${userId}`)
     .then(res=>{
      context.commit('PersonalInformation', res)
       console.log(res);
     })
   }
  }
}
